package org.springframework.beans.factory.test.annoTest;

import org.springframework.beans.factory.anno.Autowired;
import org.springframework.beans.factory.anno.Import;
import org.springframework.beans.factory.anno.Value;

/**
 * @author:刘仁有
 * @desc:
 * @email:953506233@qq.com
 * @data:2019/12/16
 */
//@Component
@Import(UserService.class)
public class OrderService {

    @Value("20")
    int age;

    @Autowired
    UserService userService;

    @Value("lry")
    String name;

    @Value("a")
    char a;

    @Value("b")
    Character b;

    @Value
    double d;

    @Value("1")
    short bb;

    @Value("123")
    byte bbB;

    public void doSth(){
        System.out.println("doSth");
    }
}
